home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / DVIM72-Mac 1.9.6 / source / FATAL, usage, warning.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-14  |  1.2 KB  |  46 lines  |  [TEXT/R*ch]

  1. /* -*-C-*- fatal.h */
  2. /*-->fatal*/
  3. /**********************************************************************/
  4. /******************************* fatal ********************************/
  5. /**********************************************************************/
  6. #include "dvihead.h"
  7. #include "commands.h"
  8. #include "gendefs.h"
  9. #include "gblprocs.h"
  10. #include "egblvars.h"
  11. #include "m72.h"
  12. #include "sillymalloc.h"
  13.  
  14.  
  15. #define    NIL        0L
  16. #if OS_THINKC
  17. void    Show_error( char *msg );
  18. #endif
  19.  
  20. void
  21. fatal(msg)                /* issue a fatal error message */
  22. char *msg;                /* message string */
  23. {
  24.     /* 
  25.         For safety, let's clear some memory.  We'll be quitting anyway.
  26.     */
  27.     sillyfree();
  28.     printf("FATAL--");
  29.     printf("%s\n", msg);
  30.     printf( "Current TeX page counters: [%s]\n",tctos());
  31.     Show_error( msg );
  32.     alldone();
  33. }
  34.  
  35. /**********************************************************************/
  36. /****************************** warning *******************************/
  37. /**********************************************************************/
  38.  
  39. void
  40. warning(msg)                /* issue a warning */
  41. char *msg;                /* message string  */
  42. {
  43.     (void)printf("\n%s\n", msg );
  44.     (void)printf("Current TeX page counters: [%s]\n",tctos());
  45. }
  46.